import urllib

url = "https://maicai.api.ddxq.mobi/order/checkOrder"
postDict = {
#     "uid": "59786872dc759e40ec5a5e68",
#     "longitude": "121.401653",
#     "latitude": "31.24744",
#     "station_id": "56f35790916edf7940ad8588",
#     "city_number": "0101",
#     "api_version": "9.49.2",
#     "app_version": "2.82.0",
#     "applet_source": "",
# "channel": "applet",
# "app_client_id": "4",
# "s_id": "10fa0251c71abbd2bd914069b61d3074",
# "openid": "osP8I0WwHO78fDdWv6vaJWMVXZFg",
#     "device_token": "WHJMrwNw1k/FKPjcOOgRd+J1ee6rW3n/PRrH6Kq8m9g66TlQ+UvE66AmDe51vPg9Mc/XtPI0QeUz7MbJchBByraRk0jv7nINFdCW1tldyDzmauSxIJm5Txg==1487582755342",
#     "nars": "a522a96d261b9bc3c0600e1bb38bb0b6",
#     "sesi": "vQhHhJPf416fef5084d97be7daa1e450eb3e0de"
}
headers = {
    "Host": "maicai.api.ddxq.mobi",
    "User-Agent": "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36 MicroMessenger/7.0.9.501 NetType/WIFI MiniProgramEnv/Windows",
    "ddmc-api-version": "9.49.2",
    "ddmc-app-client-id": "4",
    "ddmc-build-version": "2.82.0",
    "ddmc-channel": "applet",
    "ddmc-city-number": "0101",
    "ddmc-device-id": "osP8I0WwHO78fDdWv6vaJWMVXZFg",
    "ddmc-ip": "",
    "ddmc-latitude": "31.24744",
    "ddmc-longitude": "121.401653",
    "ddmc-os-version": "[object Undefined]",
    "ddmc-station-id": "56f35790916edf7940ad8588",
    "ddmc-uid": "59786872dc759e40ec5a5e68",
    "Referer": "https://servicewechat.com/wx1e113254eda17715/422/page-frame.html",
    "Accept-Encoding": "gzip, deflate, br",
    "Cookie": "DDXQSESSID=10fa0251c71abbd2bd914069b61d3074"
}
request = urllib.request.Request(url=url, headers=headers)

formdata = urllib.parse.urlencode(postDict).encode()


response = urllib.request.urlopen(request, formdata)

print(response.read().decode())